﻿using ShanNiang.Hosting.Common;
using ShanNiang.Hosting.Enumerate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Service.PackingModels.Requests
{
    /// <summary>
    /// 查询装箱记录的箱子
    /// </summary>
    public class GetPackingBoxesPageRequest : PageRequest
    {
        public GetPackingBoxesPageRequest(Guid packingRecordId)
        {
            PackingRecordId = packingRecordId;
            //ItemId = itemId;
        }
        /// <summary>
        /// 商品名称筛选
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 装箱记录id
        /// </summary>
        public Guid PackingRecordId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public Guid? UserId { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public Guid? ItemId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 企业id
        /// </summary>
        public Guid? EnterpriseId { get; set; }

        public override ApiServer ApiServer => ApiServer.XkmServer;

        public override HttpMethod Method => HttpMethod.Get;

        public override bool NeedToken => true;

        protected override string RequestPath => "/api/Packing/GetPackingBoxesPage";
    }
}
